package org.tarena.dang.service;

import java.util.Map;

import org.tarena.dang.util.Constant;

public class CartFactory {

	public static CartService getCart(Map<String, Object> session) {
		CartService cartService = (CartServiceImp)session.get(Constant.CART);
		if(cartService==null){
			cartService = new CartServiceImp();
			session.put(Constant.CART, cartService);
			
		}
		return cartService;
	}
	
}
